package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.LowerBean
import com.changpay.zywy.utils.ImageLoader

/**
 * Created by chenxz on 2018/4/22.
 */
class LowerAdapter(private val context: Context?, datas: MutableList<LowerBean>)
    : BaseQuickAdapter<LowerBean, BaseViewHolder>(R.layout.item_lower, datas) {

    override fun convert(helper: BaseViewHolder?, item: LowerBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_name,item.member_name ).setText(R.id.tv_phone,item.member_mobile)
        ImageLoader.loadAvatar(item.member_avatar,helper.getView(R.id.iv_head))
    }

}
